left
详情
主题:Hibernate 常用命令 返回 搜索

查询


        StudentEntity studentEntity = session.get(StudentEntity.class, 1);  //通过反射StudentEntity.class
        System.out.println(studentEntity);


StudentEntity{id=1, name='张三', sex='男', regDate=2019-12-23 11:23:04.0}

警告:
您是否确定删除贴子?
确定 取消
copyright